#define _CRT_SECURE_NO_WARNINGS 1
#include "string.h"

int main()
{
	/*dwc::string s1;
	cout << s1.c_str() << endl;*/

	/*dwc::string s1("hello world");
	cout << s1.c_str() << endl;
	cout << s1[0]++ << endl;*/

	/*const dwc::string s2("woman");
	cout << s2.c_str() << endl;
	cout << s2[0] << endl;*/

	/*for (int i = 0; i < s1.size(); i++)
	{
		cout << s1[i] << endl;
	}*/
	
	/*dwc::string s1("hello world");
	const dwc::string s2("xxxxxx");

	dwc::string::iterator it = s1.begin();
	while (it != s1.end())
	{
		cout << *it;
		it++;
	}
	cout << endl;
    
	dwc::string::const_iterator it2 = s2.begin();
	while (it2 != s2.end())
	{
		cout << *it2;
		it2++;
	}*/

	/*char* ptr = new char[5]{'a'};
	delete[] ptr;*/

	/*char* pc = new char{'a'};
	char*& cc = pc;
	cout << *pc << endl;
	cout << *cc << endl;
	*cc = 'b';
	cout << *cc << endl;*/

	/*dwc::string s1 = "hello world";
	cout << s1.c_str() << endl;
	cout << s1.size() << endl;
	cout << s1.capacity() << endl;

	s1.push_back('a');
	cout << s1.c_str() << endl;
	cout << s1.size() << endl;
	cout << s1.capacity() << endl;

	s1.append("nihao");
	cout << s1.c_str() << endl;
	cout << s1.size() << endl;
	cout << s1.capacity() << endl;*/

	return 0;
}